{yun:}if $usertype == 1{/yun}
	{yun:}include file="$userstyle/header.htm"{/yun}
{yun:}elseif $usertype == 2{/yun}
	{yun:}include file="$comstyle/header.htm"{/yun}
{yun:}elseif $usertype == 3{/yun}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
{yun:}include file="$lietoustyle/public.htm"{/yun} 
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/js/member_public.js?v={yun:}$config.cachecode{/yun}"></script>
<link rel="stylesheet" href="{yun:}$lietou_style{/yun}/css/jianli.css?v={yun:}$config.cachecode{/yun}" type="text/css">

</head>
<body>
{yun:}include file="$lietoustyle/header.htm"{/yun} 

{yun:}/if{/yun}

<link href="{yun:}$config.sy_weburl{/yun}/app/template/chat/css/chat.css?v={yun:}$config.cachecode{/yun}'" rel="stylesheet">
<div class="w1000">
	<div class="admin_mainbody"> 
	
	{yun:}if $usertype == 1{/yun}
		{yun:}include file="$userstyle/left.htm"{/yun}
	{yun:}elseif $usertype == 2{/yun}
		{yun:}include file="$comstyle/left.htm"{/yun}
	{yun:}elseif $usertype == 3{/yun}
		{yun:}include file="$lietoustyle/left.htm"{/yun}
	{yun:}/if{/yun}

		<div class="chat_content">
			<div class="chat_boxall">
				<!--  left-->
				<div class="chat_box_left">
					<div class="chat_box_header">
						<div class="chat_box_header_l">
							<div class="chat_box_header_l_u">30天内联系人 </div>
                            <span id="showUnread" class="chat_box_header_wd"><i class="chat_wd_checkbox"></i>未读消息</span>
						</div>
					</div>
					<ul id="chatList" class="chat_box_userlist">
						{yun:}foreach from=$rows item=v{/yun}
						<li id="chat_{yun:}$v.id{/yun}" onclick="toChat('{yun:}$v.id{/yun}','{yun:}$v.tusertype{/yun}','{yun:}$usertype{/yun}')" class="{yun:}if $v.id == $smarty.get.uid{/yun}chat_box_user_cur{yun:}/if{/yun}">
							<div class="chat_box_userpic"><img src="{yun:}$v.avatar{/yun}" width="50" height="50"><i class="chat_box_usermsg">{yun:}$v.unread{/yun}</i></div>
							<div class="chat_box_userinfo">
								<div class="chat_box_username">{yun:}$v.linkman{/yun}<span class="chat_box_userzw">{yun:}if $v.tusertype != 1{/yun}招聘者{yun:}else{/yun}求职者{yun:}/if{/yun}</span></div>
								
								<div class="chat_box_userp">
								{yun:}if $v.tusertype != 1{/yun}
									{yun:}$v.username{/yun}
								{yun:}else{/yun}
									{yun:}$v.content{/yun}
								{yun:}/if{/yun}
								</div>
								<span class="chat_box_usertime">{yun:}$v.time{/yun}</span>
								<div class="xz_zt">
									{yun:}if $v.down == 1{/yun}
										<span class="xz_zt_a">已下载简历</span>
									{yun:}/if{/yun}
									{yun:}if $v.sq == 1 && ($usertype == 2 || $usertype == 3){/yun}
										<span class="xz_zt_a">已投递简历</span>
									{yun:}/if{/yun}
									{yun:}if $v.sq == 1 && $usertype == 1{/yun}
										<span class="xz_zt_a">已申请职位</span>
									{yun:}/if{/yun}
								</div>
							</div>
						</li>
						{yun:}/foreach{/yun}
					</ul>

				</div>
				<!--  right-->
				<div class="chat_box_right">
					{yun:}if $smarty.get.id{/yun}
					<!--  有内容-->
					<div class="chat_box_right_gtinfo">
                    
						{yun:}if $receive{/yun}
						<span class="chat_box_right_gtinfo_u">{yun:}$receive.linkman{/yun}</span>
						<span class="chat_box_right_gtinfo_line">|</span>{yun:}$receive.identity{/yun}
						<span class="chat_box_right_cz">
							{yun:}if $receive.usertype == 1 && $usertype != 3{/yun}
								{yun:}if $inviteNum > 0{/yun}
									<span class="chat_box_right_cz_a">已邀请面试</span>
								{yun:}else{/yun}
									<span onclick="inviteResume(this)" uid="{yun:}$receive.id{/yun}" class="chat_box_right_cz_a">面试邀请</span>
								{yun:}/if{/yun}
							{yun:}/if{/yun}
							{yun:}if $receive.usertype != 1{/yun}
							<span id="sendExpcet" class="chat_box_right_cz_a">发简历</span>
							{yun:}/if{/yun}
							<span class="chat_box_right_gtinfo_line">|</span>
							<span id="sendJob" class="chat_box_right_cz_a">发职位</span>
							<span class="chat_box_right_gtinfo_line">|</span>
							<span id="nochat" class="chat_box_right_cz_a">不感兴趣</span>
						</span>
						{yun:}/if{/yun}
					</div>
					{yun:}if $receive.usertype != 1{/yun}
					<div id="content_job" class="chat_box_right_gtjob"></div>
					{yun:}/if{/yun}
					{yun:}if $receive.usertype == 1 {/yun}
                    <div id="content_expect" class="chat_box_right_gtjob"></div>
					{yun:}/if{/yun}
					{yun:}if $receive{/yun}
					<div id="chat_box" class="chat_box_all">
						<div id="chat_content" class="chat_sendcontent">
							<ul>
							</ul>
						</div>
					</div>
					<!--footer-->
					<div class="chat_footer_box">
						<div class="chat_footer_czk">
							<div>
								<iframe id="chat_iframe" name="chat_iframe" class="chat_iframe"></iframe>
								<form id="imgform" target="chat_iframe" method="post"  enctype="multipart/form-data" action="{yun:}$config.sy_weburl{/yun}/index.php?m=chat&c=uploadImage">
									<span class="chat_footer_czk_tj"><input type="file" name="file" accept="image/*" onchange="upImage(this)" value="" class="chat_footer_czk_tj_bth"></span>
								</form>
							</div>
						</div>
						<div class="chat_footer_box_c">
							<textarea id="send_content" class="chat_footer_textarea" placeholder="请输入内容" oninput="checkSend()"></textarea>
							<div class="chat_footer_bth_c">
								<span class="chat_footer_bth_tip">按Enter可以发送</span>
								<input id="send" type="submit" value="发送" class="chat_footer_bth">
							</div>
						</div>
					</div>
					{yun:}/if{/yun}
					
					{yun:}else{/yun}
						<!--无内容 提示-->
						<div class="chattip">提示：与您进行过沟通过信息的都会在左侧列表中显示</div>
                    {yun:}/if{/yun}
                   </div>
				</div>
			</div>
		</div>
	</div>
</div>
	<!--弹出职位-->
	<div id="joblist" class="none">
		<div id="bg" style="display:block"></div>
		<div class="chatjob_box">
			<div class="chatjob_box_tit"><span class="chatjob_box_tit_name">选职位</span><span id="closeJob" class="chatjob_box_tit_close"></span></div>
			<div class="chatjob_box_c">
				<div id="chatjob_list" class="chatjob_box_job"></div>
			</div>
		</div>
	</div>
	<div class="none">
		<input type="hidden" name="eid" id="eid" value="" />
	</div>
	<div id="zwf" class="none">【&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;】</div>
    <style>
	.yun_m_leftsidebar{ display:none;}
	.m_cont_inner{ background:none;}
	.m_inner_zuob{ display:none;}
	</style>
	<script type="text/javascript">
		var socket = null,
			socketUrl = "{yun:}$config.sy_chat_weburl{/yun}",
			weburl = "{yun:}$config.sy_weburl{/yun}",
			jid = '{yun:}$smarty.get.jid{/yun}',
			eid = '{yun:}$smarty.get.eid{/yun}',
			toid = '{yun:}$receive.id{/yun}',
			totype = '{yun:}$receive.usertype{/yun}',
			inviteid = '{yun:}$smarty.get.invite{/yun}',
			scrollHeight = 0,
			mine = {usertype: '{yun:}$usertype{/yun}'},
			joblist = null,
			expect = null,
			jobShowed = true,
			sendTime = 0,
			pastSend = 0,
			MAX_ITEM = 20,
			page = 1,
			newChatMsg = false,
			titledsq = null,
			chat_name = '{yun:}$config.sy_chat_name{/yun}';
	</script>
	<script src="{yun:}$config.sy_weburl{/yun}/app/template/chat/yunliao/websocket.js?v={yun:}$config.cachecode{/yun}"></script>

{yun:}if $usertype == 1{/yun}
	{yun:}include file="$userstyle/footer.htm"{/yun}
{yun:}elseif $usertype == 2{/yun}
	{yun:}include file="$comstyle/yqms.htm"{/yun}
	{yun:}include file="$comstyle/footer.htm"{/yun}
{yun:}elseif $usertype == 3{/yun}
	{yun:}include file="$lietoustyle/footer.htm"{/yun} 
{yun:}/if{/yun}		 